﻿<%@ Page Language="c#" CodeBehind="MyParticipation.aspx.cs" AutoEventWireup="false"
    Inherits="BEGDC.CC.Web.MyParticipation" %>

<%@ Register TagPrefix="uc1" TagName="PageNavigation" Src="../UserControls/PageNavigation.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>Alcatel-Lucent Customer Care</title>
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/entity.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="../js/jquery-ui.min.js" type="text/javascript"></script>

    <script src="../js/entity.js.aspx" type="text/javascript"></script>

    <script src="../js/common.js" type="text/javascript"></script>

    <script type="text/javascript">
        function document.onkeydown() {
            var e = event.srcElement;
            if (event.keyCode == 13) {
                document.all.btnSearch.click();
                return false;
            }
        }

        var openedWindow;
        var timer;
       
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="mainbox">
        <div class="sitemapbox">
            <div id="info" class="sitemap">
                <% if (Request.QueryString["flow"] == "OCV" || Request.QueryString["flow"] == "OCR")
                   { %>
                &nbsp;&raquo;&nbsp;IBG<%=Request.QueryString["flow"].Substring(1,2)%>&nbsp;&raquo;&nbsp;My Participation
                <%  } %>
                
                <%else 
                    { %>
                &nbsp;&raquo;&nbsp;<%=Request.QueryString["flow"]%>&nbsp;&raquo;&nbsp;My Participation
                <% } %>
            </div>
        </div>
        <table id="Table11" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td>
                        <table id="Table4" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                                    <!--tab区域-->
                                    <div class="tabbox purplebg_dark">
                                        <ul class="tabpos">
                                            <li><span class="tab_active">
                                                <%=Resources.PageTitles.MyParticipation%></span>
                                                <!--<td width="3"><IMG height="33" src="../images/tab.gif" width="3"></td>
																<td><A href="MyAP.aspx"><span class="TAB_2">Action Point</span></A></td>
																<td width="3"><IMG height="33" src="../images/tab.gif" width="3"></td>
																-->
                                            </li>
                                        </ul>
                                    </div>
                                    <div class="formbox5">
                                        <span class=" float_lft width120" id="tbTypeSpan" runat="server" visible="false">Type
                                            (类型):</span> <span class=" float_lft padding_lft20" id="tbDdlFlowTypeSpan" runat="server"
                                                visible="false">
                                                <asp:DropDownList ID="ddlFlowType" runat="server" AutoPostBack="True" CssClass="formfont width300">
                                                    <asp:ListItem Value="" Selected="True">All</asp:ListItem>
                                                </asp:DropDownList>
                                            </span>
                                    </div>
                                    <div class="formbox5">
                                        <span class=" float_lft width120">Department (部门):</span> <span class=" float_lft padding_lft20">
                                            <asp:DropDownList ID="ddlDepartment" runat="server" CssClass="formfont width160">
                                            </asp:DropDownList>
                                        </span><span class=" float_lft padding_lft20">Year (年份):</span> <span class=" float_lft padding_lft20">
                                            <asp:DropDownList ID="ddlYear" runat="server" CssClass="formfont width160">
                                                <asp:ListItem Value="2007">2007</asp:ListItem>
                                                <asp:ListItem Value="2008">2008</asp:ListItem>
                                                <asp:ListItem Value="2009">2009</asp:ListItem>
                                                <asp:ListItem Value="2010">2010</asp:ListItem>
                                                <asp:ListItem Value="2011">2011</asp:ListItem>
                                                <asp:ListItem Value="2012">2012</asp:ListItem>
                                                <asp:ListItem Value="2013">2013</asp:ListItem>
                                                <asp:ListItem Value="2014">2014</asp:ListItem>
                                                <asp:ListItem Value="2015">2015</asp:ListItem>
                                            </asp:DropDownList>
                                        </span>
                                    </div>
                                    <div class="formbox5">
                                        <span class=" float_lft width120">Status (状态):</span> <span class=" float_lft padding_lft20">
                                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="formfont width160">
                                                <asp:ListItem Value="-1">All</asp:ListItem>
                                                <asp:ListItem Value="0">Normal</asp:ListItem>
                                                <asp:ListItem Value="1">Pending</asp:ListItem>
                                                <asp:ListItem Value="2">Cancel</asp:ListItem>
                                                <asp:ListItem Value="3">Closed</asp:ListItem>
                                            </asp:DropDownList>
                                        </span><span class=" float_lft padding_lft20">Application# (申请单号):</span> <span class=" float_lft padding_lft20">
                                            <asp:TextBox ID="txtApplication" onmouseover="this.className='txtboxover';" onMouseOut="this.className='txtbox';"
                                                runat="server" MaxLength="50" CssClass="txtbox"></asp:TextBox>
                                        </span>
                                    </div>
                                    <div class="formbox">
                                        <span class=" float_lft">
                                            <asp:ResourceButton ID="btnSearch" runat="server" Text="Search" ToolTip="SearchTips"
                                                CssClass="btn" />
                                        </span><span class=" float_lft padding_lft20">
                                            <asp:ResourceButton ID="btnExport" runat="server" Text="Export" ToolTip="ExportTips"
                                                CssClass="btn" />
                                        </span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div id="divGrid">
                                        <asp:DataGrid ID="dgTaskList" ShowHeader="True" AutoGenerateColumns="False" GridLines="both"
                                            CellPadding="2" runat="server" PageSize="10" AllowPaging="True" PagerStyle-Visible="False"
                                            AllowSorting="True" CssClass="tablestyle">
                                            <ItemStyle CssClass="tbody"></ItemStyle>
                                            <HeaderStyle CssClass="thead"></HeaderStyle>
                                            <Columns>
                                                <asp:BoundColumn Visible="False" DataField="FlowID"></asp:BoundColumn>
                                                <asp:BoundColumn Visible="False" DataField="AppID"></asp:BoundColumn>
                                                <asp:BoundColumn Visible="False" DataField="CurrentActiveStepName"></asp:BoundColumn>
                                                <asp:TemplateColumn HeaderText=" " Visible="False">
                                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                    <HeaderTemplate>
                                                        <input type="checkbox" name="SelectAllCheckBox" onclick="SelectAll(this)" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkSelection" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:TemplateColumn HeaderText="Application#<br/> 申请单号" SortExpression="AppNo">
                                                    <ItemStyle Width="13%"></ItemStyle>
                                                    <ItemTemplate>
                                                        <span class="hand_span" onmouseover="this.className='hand_span_over';" onmouseout="this.className='hand_span';"
                                                            onclick="openedWindow = window.open('../<%# !DataBinder.Eval(Container.DataItem,"Type").Equals("EZV") ?  "workflow/workflowexecution" : "ezvisit/ezvrequest" %>.aspx?AppID=<%# DataBinder.Eval(Container.DataItem,"AppID") %>&ID=<%# DataBinder.Eval(Container.DataItem,"AppID") %>&FlowID=<%# DataBinder.Eval(Container.DataItem,"flowid") %>&PDType=<%# DataBinder.Eval(Container.DataItem,"Type")%>&State=Par&Type=App',null,'height=760,width=1024,top=25,left=25,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes');SetTimer();"
                                                            onmouseover="this.style.cursor='hand'" />
                                                        <%# DataBinder.Eval(Container.DataItem,"AppNo") %></span>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:BoundColumn DataField="RequesterNameEN" ReadOnly="True" HeaderText="Applicant <br>申请人"
                                                    SortExpression="RequesterNameEN">
                                                    <ItemStyle Width="8%"></ItemStyle>
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="Department" ReadOnly="True" HeaderText="Dept. <br/>部门"
                                                    SortExpression="Department">
                                                    <ItemStyle Width="6%"></ItemStyle>
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="Company" ReadOnly="True" HeaderText="Customer Company<br> 客户公司"
                                                    SortExpression="Company">
                                                    <ItemStyle></ItemStyle>
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="Venue" ReadOnly="True" HeaderText="Venue<br> 地点" SortExpression="Venue"
                                                    Visible="True">
                                                    <ItemStyle Width="13%"></ItemStyle>
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="RequestedDateFrom" ReadOnly="True" HeaderText="Begin Date <br/> 开始时间"
                                                    SortExpression="RequestedDateFrom" DataFormatString="{0:M/d/yyyy}">
                                                    <ItemStyle Width="7%"></ItemStyle>
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="RequestedDateTo" ReadOnly="True" HeaderText="End Date <br/>结束时间"
                                                    SortExpression="RequestedDateTo" DataFormatString="{0:M/d/yyyy}">
                                                    <ItemStyle Width="7%"></ItemStyle>
                                                </asp:BoundColumn>
                                                <asp:ToolTipsBoundColumn DataField="CurrentActiveRole" ReadOnly="True" HeaderText="Current Actor <br/>当前操作"
                                                    SortExpression="CurrentActiveRole" MaxCharacter="15">
                                                    <ItemStyle Width="10%"></ItemStyle>
                                                </asp:ToolTipsBoundColumn>
                                                <asp:BoundColumn DataField="CurrentActiveStepName" ReadOnly="True" HeaderText="Step <br/>操作步骤"
                                                    SortExpression="CurrentActiveStepName">
                                                    <ItemStyle Width="9%"></ItemStyle>
                                                </asp:BoundColumn>
                                                <asp:TemplateColumn HeaderText="Status<br/>状态" Visible="True">
                                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                    <ItemStyle HorizontalAlign="Center" Width="4%"></ItemStyle>
                                                    <ItemTemplate>
                                                        <img src="../Images/Flag<%# DataBinder.Eval(Container.DataItem,"StateCode") %>.gif"
                                                            alt="<%# DataBinder.Eval(Container.DataItem,"StateCode") %>" title="<%# DataBinder.Eval(Container.DataItem,"StateCode") %>" />
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:TemplateColumn HeaderText="Action" Visible="False">
                                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                    <ItemTemplate>
                                                        <img src="../Images/COMEDIT.GIF" alt="COMEDIT" onclick="window.open('../<%# !DataBinder.Eval(Container.DataItem,"Type").Equals("EZV") ?  "workflow/workflowexecution" : "ezvisit/ezvrequest" %>.aspx?AppID=<%# DataBinder.Eval(Container.DataItem,"AppID") %>&ID=<%# DataBinder.Eval(Container.DataItem,"AppID") %>&FlowID=<%# DataBinder.Eval(Container.DataItem,"flowid") %>&PDType=<%# DataBinder.Eval(Container.DataItem,"Type")%>&State=Par&Type=App',null,'height=760,width=1024,top=25,left=25,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes')"
                                                            onmouseover="this.style.cursor='hand'" />
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                            </Columns>
                                        </asp:DataGrid><table>
                                        </table>
                                    </div>
                                    <table id="Table3" cellspacing="0" cellpadding="0" class="pagecounting">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    Total Records:
                                                    <asp:Label ID="lblRecordCount" runat="server">lblRecordCount</asp:Label>
                                                    &nbsp;&nbsp;&nbsp;
                                                    <img src="../images/PageIcon.GIF" alt="PageIcon" />&nbsp;Page:
                                                    <asp:Label ID="lblCurrentPageIndex" runat="server">lblCurrentPageIndex</asp:Label>&nbsp;/&nbsp;
                                                    <asp:Label ID="lblPageCount" runat="server">lblPageCount</asp:Label>
                                                </td>
                                                <td align="right">
                                                    <asp:ImageButton ID="btnPageFirst" runat="server" ImageUrl="../images/pg_first.gif"
                                                        ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                    <asp:ImageButton ID="btnPagePrev" runat="server" ImageUrl="../images/pg_pre.gif"
                                                        ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                    <asp:ImageButton ID="btnPageNext" runat="server" ImageUrl="../images/pg_next.gif"
                                                        ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                    <asp:ImageButton ID="btnPageLast" runat="server" ImageUrl="../images/pg_last.gif"
                                                        ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp; Go To Page:
                                                    <asp:TextBox ID="txtPage" runat="server" CssClass="txtbox pager-text" MaxLength="5"></asp:TextBox>
                                                    <asp:ImageButton ID="btnGotoPage" runat="server" ImageUrl="../images/PageIcon.GIF">
                                                    </asp:ImageButton>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
    <%--页面刷新时显示--%>
    <%-- <div id="dialog-message" title="Loading..." style="display: none">
        <p>
            <br />
            <span class="entity-loading"></span><span>Operation in process, please wait...<br />
                <br />
                处理中, 请稍候。。。</span>
        </p>
    </div>--%>
</body>
</html>
